package com.rerun.service;

import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.IService;
import com.rerun.common.bean.Rest;
import com.rerun.entity.Job;
import com.rerun.entity.MemberPost;

import javax.mail.MessagingException;
import javax.servlet.http.HttpServletRequest;
import java.io.IOException;

/**
 * The interface Member post service.
 *
 * @author dax.
 * @version v1.0
 * @since 2017 /10/12 9:47
 */
public interface IMemberPostService extends IService<MemberPost> {
    /**
     * 简历投递.
     *
     * @param request  the request
     * @param memberId the member id
     * @param jobId    the job id
     * @return the rest
     * @throws IOException        the io exception
     * @throws MessagingException the messaging exception
     */
    Rest postResume(HttpServletRequest request, String memberId, String jobId) throws IOException, MessagingException;



    /**
     * 简历投递校验  一个人只有超过30天才能对同一份工作进行简历投递
     *
     * @param memberId the member id
     * @param jobId    the job id
     * @return boolean 返回true  可以进行投递  否则 不能投递
     */
    boolean selectForVerify(String memberId, String jobId);

}
